<!-- BEGIN:main -->



<script>
    $(function() {
        $("#datepicker").datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
    
    function submitForm(action)
    {
        var title = $('#txtTitle');
        var hasError = validateEmptyValue(title);


        if (hasError) {
            alert("Vui lòng điền đầy đủ thông tin");
        } else {

            var alias = $('#txtAlias');

            if (alias.val().trim() == '') {
                alias.val(title.val());
            }

            var form = document.phpForm;
            form.hdAction.value = action;
            form.submit();
        }
    }
    
    
</script>



<div id="toolbar-box">
    <div class="d_divide5"></div>
    <div class="toolbar" id="toolbar">
        <table class="toolbar">
            <tbody>
                <tr>
                    <td class="button" id="toolbar-save">
                        <a href="javascript:void()" onclick="submitForm('editAndExit')" class="toolbar">
                            <span class="icon-32-save" title="Lưu và thoát">
                            </span>
                            Lưu và thoát
                        </a>
                    </td>

                    <td class="button" id="toolbar-apply">
                        <a href="javascript:void()" onclick="submitForm('edit')" class="toolbar">
                            <span class="icon-32-apply" title="Lưu">
                            </span>
                            Lưu
                        </a>
                    </td>

                    <td class="button" id="toolbar-cancel">
                        <a href=".?com=com_menu&view=category&task=view" class="toolbar">
                            <span class="icon-32-cancel" title="Hủy">
                            </span>
                            Hủy
                        </a>
                    </td>

                </tr>
            </tbody>
        </table>
    </div>
    <div class="header icon_48_menu_category_edit">
        Nhóm danh mục: <small><small>[ Chỉnh sửa ]</small></small><br>
    </div>

    <div class="d_divide5"></div>
</div>
<div class="d_divide10"></div>
<div class="d_clear"></div>
<div id="element-box">

    <form method="post" name="phpForm">
        <input type="hidden" name="hdAction"/>
        <input type="hidden" name="hdCategoryID" id="hdCategoryID" value="{CATEGORY_ID}"/>

        <fieldset class="adminform">
            <legend>Chi tiết</legend>

            <table class="admintable">
                <tbody>
                    <tr>
                        <td >
                            <label for="txtTitle" class="d_label" >Tên: <b style="color: red;font-size: 14px;">*</b></label>
                        </td>
                        <td>
                            <input style="width: 350px; " class="d_text_input"  name="txtTitle" id="txtTitle" value="{CATEGORY_TITLE}" size="50" maxlength="50" title="Tê" type="text" />
                        </td>  
                        <td >
                            <label for="datepicker" class="d_label">
                                Ngày cập nhật: 
                            </label>
                        </td>
                        <td >					
                            <input value="{CATEGORY_MODIFIED_DATE}" readonly="true" class="d_text_input"  id="datepicker" style="WIDTH: 80px;" name="createdDate" />
                        </td> 

                    </tr>
                    <tr>
                        <td >
                            <label for="txtAlias" class="d_label" >Alias:</label>
                        </td>
                        <td >
                            <input style="width: 350px; " class="d_text_input" name="txtAlias" id="txtAlias" value="{CATEGORY_ALIAS}" size="50" maxlength="50" title="Alias" type="text" />
                        </td> 

                        <td >
                            <label class="d_label" >Bật/Tắt: </label>
                        </td>
                        <td >
                            
                            <!-- BEGIN:state_false -->
                            <input name="rdoState" value="0" checked="checked" type="radio"  />
                            <label >Tắt</label>
                            <input name="rdoState" value="1"  type="radio" />
                            <label >Bật</label>
                            <!-- END:state_false -->


                            
                            <!-- BEGIN:state_true -->
                            <input name="rdoState" value="0"  type="radio" />
                            <label >Tắt</label>
                            <input name="rdoState" value="1" checked="checked"  type="radio" />
                            <label >Bật</label>
                            <!-- END:state_true -->                                                
                        </td>                                                                                  					                    
                    </tr>
                </tbody></table>
        </fieldset>

        <fieldset class="adminform">
            <legend>Sự miêu tả</legend>


            <textarea name="txtDescription" id="txtDescription">{CATEGORY_DESCRIPTION}</textarea>
            <script language="javascript" type="text/javascript">
                CKEDITOR.replace('txtDescription',
                {
                    filebrowserBrowseUrl: '../blugin/ckeditor3.6.4/ckfinder/ckfinder.html',
                    filebrowserImageBrowseUrl: '../blugin/ckeditor3.6.4/ckfinder/ckfinder.html?type=Images',
                    filebrowserFlashBrowseUrl: '../blugin/ckeditor3.6.4/ckfinder/ckfinder.html?type=Flash',
                    height: 250,
                    toolbarStartupExpanded: false
                });
            </script>

        </fieldset>





    </form>

</div>
<noscript>
!Cảnh báo! Javascript phải được bật để chạy được các chức năng trong phần Quản trị		</noscript>

<!-- END:main -->